<template>
	<view class="addBtn p-color-bg" @click="handleShowModel()">
		+
	</view>
</template>

<script setup>
	const emit = defineEmits(["@handleShowModelChild"]); //监听【父级】对象
	//显示表单
	const handleShowModel = ()=>{
		emit("handleShowModelChild", true); //修改【父级方法中的】变量
	} 
</script>

<style>
	.addBtn{
		position:fixed;
		bottom:0;
		left: 50%;
		/* 配合【left: 50%;】实现居中 */
		transform: translateX(-50%);
		width: 100rpx;
		height: 100rpx;
		border-radius: 100rpx;
		font-weight: bold;
		color: #fff;
		display: flex;
		justify-content: center;
		align-items: center;
	}
</style>